#ifndef __SEMAPHORE_H__
#define __SEMAPHORE_H__

#ifndef _ANSI_H
#include <ansi.h>
#endif

typedef struct
{
	int id;
} sem_t;

_PROTOTYPE( int sem_post, (sem_t* _sm)						);
_PROTOTYPE( int sem_wait, (sem_t* _sm)						);
_PROTOTYPE( int sem_init, (sem_t* _sm, unsigned int _value)	);
_PROTOTYPE( int sem_getvalue, (sem_t * _sm, unsigned int * _value) 		);
_PROTOTYPE( int sem_destroy, (sem_t * _sm) 					);
_PROTOTYPE( int sem_getqueuesize, (sem_t * _sm, unsigned int * _value) 		);
_PROTOTYPE( int sem_assign, (sem_t* _sm, unsigned int _value)	);
_PROTOTYPE( int sem_issem, (sem_t* _sm)						);
_PROTOTYPE( int sem_freesem, (sem_t* _sm)						);

#endif /*__SEMAPHORE_H__*/

